package boundarys;

import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class ManageSalesGUI extends AbstractGUI{

	private JFrame frmCcrmManage;


	public ManageSalesGUI() {
		initialize();
		initGUI(frmCcrmManage);
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmCcrmManage = new JFrame();
		frmCcrmManage.setResizable(false);

		frmCcrmManage.setTitle("CCRM > Manage Clients");
		frmCcrmManage.setBounds(100, 100, 311, 123);
		frmCcrmManage.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		frmCcrmManage.getContentPane().setLayout(null);
		
		JLabel lblAddOrUpdate = new JLabel("update or initiate new sale?");
		lblAddOrUpdate.setBounds(85, 11, 151, 14);
		frmCcrmManage.getContentPane().add(lblAddOrUpdate);
		
		JButton btnUpdateSale = new JButton("Update Sale");
		btnUpdateSale.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				frmCcrmManage.dispose();
				new UpdateSaleGUI();
			}
		});
		btnUpdateSale.setBounds(10, 36, 117, 34);
		frmCcrmManage.getContentPane().add(btnUpdateSale);
		
		JButton btnInitiateSale = new JButton("Initiate Sale");
		btnInitiateSale.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				frmCcrmManage.dispose();
				new InitiateSaleGUI();
			}
		});
		btnInitiateSale.setBounds(168, 36, 117, 34);
		frmCcrmManage.getContentPane().add(btnInitiateSale);
		frmCcrmManage.setVisible(true);
	}

	@Override
	public void getReply(Object r) {
		// TODO Auto-generated method stub
		
	}

}
